package loc.dd.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import loc.dd.entity.Pend;
import loc.dd.entity.Project;

/**
*@author 作者：huyaqi
*@version 创作时间:2023年12月4日上午8:51:52
*
*/

@Repository
public interface ProjectMapper {
	int addproject(Project project);
	
	HashMap<String,Object> getmessage(@Param("id") int id);
	
	HashMap<String,Object> detail(@Param("id") int id);
	
	List<Map<String, Object>> getallmessage(@Param("page") int page,@Param("pageSize") int pageSize,List<String> aidList);
	
	List<Map<String, Object>> getzqmessage(@Param("page") int page,@Param("pageSize") int pageSize,@Param("uid") String uid);
	
	List<Map<String, Object>> selectproject(@Param("orderName") String orderName,@Param("page") int page,@Param("pageSize") int pageSize,List<String> aidList);
	
	List<Map<String, Object>> selectzqproject(@Param("orderName") String orderName,@Param("page") int page,@Param("pageSize") int pageSize,@Param("uid") String uid);
	
	List<Map<String, Object>> getprocess(@Param("id") int id);
	
	int selectsum(@Param("orderName") String orderName);
	
	int getsum();
	
	int endproject(Pend pend);
	
	int updatestatus(@Param("zt") int zt ,@Param("id") int id);
	
	Map<String, Object> getend(@Param("id") int id);
	
	String gettjnl(@Param("id") String id);
	
	int gettjjd(@Param("id") String id);
	
	List<Map<String, Object>> getorderNum(@Param("aidList") List<String> aidList);
	
	int getorderNumzq(@Param("uid") String uid);
	
	int getorderEndzq(@Param("uid") String uid);
	
	int getorderProceszq(@Param("uid") String uid);
	
	List<Map<String, Object>>  getorderProces(@Param("aidList") List<String> aidList);
	
	List<Map<String, Object>>  getorderEnd(@Param("aidList") List<String> aidList);
	
	List<Map<String, Object>> getindexmessage(@Param("aidList") List<String> aidList);
	
	List<Map<String, Object>> getindexmessagezq(@Param("uid") String uid);
	
	int inserjf(@Param("resultList")List<Map<String, Object>> resultList);
	
	int updateUserPoints(@Param("updateUserList")List<Map<String, Object>> updateUserList);
}
